package com.example.receive.service;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class RabbitmqTopicConsume {


    @RabbitListener(queues = "queueTopic1")
    public void queueTopic1(String val){
        System.out.println("queueTopic1 "+val);
    }

    @RabbitListener(queues = "queueTopic2")
    public void queueTopic2(String val){
        System.out.println("queueTopic2 "+val);
    }

    @RabbitListener(queues = "queueTopic3")
    public void queueTopic3(String val){
        System.out.println("queueTopic3 "+val);
    }


}
